﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VietPay.KooBoo.Business.Models.BatchListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    BatchReport
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Báo cáo xuất kho</h2>

<div class="screen-content">
<form method="post" action="BatchReport">
<fieldset>
<table class="form-table" id="tbl-search">
  <tr>
    <td class="label">Ngày nhập:</td>
    <td class="label">Từ ngày:</td>
    <td><input name="dptFromDate" type="text" value="<%:ViewData["GroupName"]%>"/></td>
    <td class="label">Đến ngày:</td>
    <td><input name="dptFromDate" type="text" value="<%:ViewData["GroupName"]%>"/></td>
  </tr>
  <tr>
    <td class="label">Đơn vị nhận:</td>
    <td><input name="txtMaLo" type="text"/></td>
  </tr>  
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="Tìm" class="btn"/></td>
  </tr>
</table>
</fieldset>
<fieldset>
<table>
    <tr>
        <th>
            Đơn vị nhận
        </th>
        <th>
            Mã lô xuất
        </th>
        <th>
            Ngày xuất
        </th>
        <th>
            Giá trị đơn hàng
        </th>
    </tr>

<% foreach (var item in Model.BatchSearchList) { %>
    <tr>
        <td>
            <%: item.BatchCode %>
        </td>
        <td>
            <%: Html.ActionLink(item.BatchCode, "BatchReportDetail", "BatchDetail", new { batchID = item.BatchID,batchCode=item.BatchCode }, null)%> 
        </td>
        <td>
            <%: String.Format("{0:g}", item.CreatedDate) %>
        </td>
        <td>
            <%: item.CreatedDate %>
        </td>
    </tr>  
<% } %>

</table>
</fieldset>
</form>
</div>
</asp:Content>

